<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改模块信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function confirmDelOneRecord() {
	if (window.confirm("您确认要删除这条记录吗?")) {
		self.location = "del.do?id=<c:out value='${merchantApiPermission.id }' />" ;
	} 
}
</script>
</head>
<body>
<form:form method="post" action="upd.do" commandName="merchantApiPermission">
<table class="input_table" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="input_titile_td" width="150">id:</td>
		<td class="input_content_td">
			<form:hidden path="id"/>
			<c:out value="${merchantApiPermission.id }" />
		</td>
	</tr>
	<tr>
		<td class="input_titile_td" width="150">商户名:</td>
		<td class="input_content_td">
			<form:input path="merchantName"/>
		</td>
	</tr>
	<tr>
		<td class="input_titile_td">API方法:</td>
		<td class="input_content_td">
			<form:input path="apiMethod" size="40" />
		</td>
	</tr>
	<tr>
		<td class="input_titile_td">ip白名单:</td>
		<td class="input_content_td">
			<form:textarea path="ipWhiteList" rows="5" cols="50" />
		</td>
	</tr>
	<tr>
		<td class="input_titile_td">创建时间:</td>
		<td class="input_content_td">
			<fmt:formatDate value="${merchantApiPermission.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /> &nbsp;</td>
		</td>
	</tr>
	<tr>
		<td class="input_titile_td">更新时间:</td>
		<td class="input_content_td">
			<fmt:formatDate value="${merchantApiPermission.updateTime}" pattern="yyyy-MM-dd HH:mm:ss" /> &nbsp;</td>
		</td>
	</tr>
	
</table>

<table class="input_table" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="input_content_td" align="left">
			<input type="submit" value="修改" />
			<input type="button" onclick="JavaScript: confirmDelOneRecord();" value="删除" />
		</td>
	</tr>
</table>

</form:form>
</body>
</html>
